#include <QtGui/QApplication>
#include "mainwindow.h"
#include <QTextCodec>
#include <QSplashScreen>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QTextCodec *codec = QTextCodec::codecForName("UTF-8");
    QTextCodec::setCodecForLocale(codec);
    QTextCodec::setCodecForCStrings(codec);
    QTextCodec::setCodecForTr(codec);

    QSplashScreen *splash=new QSplashScreen;
    splash->setPixmap(QPixmap(":image/res/0.png"));
    splash->setDisabled(true);
    splash->show();

    MainWindow w;
    w.show();

    splash->finish(&w);

    return a.exec();
}
